package com.course.delegate;

import java.util.Vector;

import com.course.bean.SolutionTo;
import com.course.exception.ConnectionException;
import com.course.exception.DataNotFoundException;
import com.course.exception.LoginException;
import com.course.serviceI.SolutionServiceI;
import com.course.serviceImpl.SolutionServiceImpl;

public class SolutionMgrDelegate {
	
	
	SolutionServiceI ssi=new SolutionServiceImpl();
	
	public Vector<SolutionTo> getQueryStatus(String login) throws DataNotFoundException{
		
		return ssi.getQueryStatus(login);
	}
	public Vector<SolutionTo> getSolution(int qid, String login)
	throws DataNotFoundException {
		return ssi.getSolution(qid, login);
	}
	public boolean insertSolution(SolutionTo sf) throws LoginException,
	ConnectionException {
		return ssi.insertSolution(sf);
	}

}
